package me.zhengjie.modules.system.repository;

import me.zhengjie.modules.system.domain.SafeRiskCase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * SafeRiskCaseRepository
 *
 * @author guoyuan
 * @version 1.0.0
 * @since 1.0.0
 */
public interface SafeRiskCaseRepository extends JpaRepository<SafeRiskCase, String>, JpaSpecificationExecutor<SafeRiskCase> {
    List<SafeRiskCase> findBySceneType(String sceneType);

    /**
     * 根据caseId列表查询所有场景风险案例表
     *
     * @param caseIdList 案例编号列表
     * @return 场景风险案例表
     */
    List<SafeRiskCase> findAllByCaseIdIn(List<String> caseIdList);
}
